projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fe6731
)
gtk-demo: Minimally fix the sarch entry demo
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 3 Mar 2019 17:42:20 +0000
(12:42 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 3 Mar 2019 17:43:00 +0000
(12:43 -0500)
This was broken by the entry refactoring.
demos/gtk-demo/search_entry.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/search_entry.c
b/demos/gtk-demo/search_entry.c
index 9b1f67d9a4267f97e19e93f0e324d03de41b0cde..c234481052f03ae037376e94c3c330b025776d05 100644
(file)
--- a/
demos/gtk-demo/search_entry.c
+++ b/
demos/gtk-demo/search_entry.c
@@
-246,7
+246,10
@@
do_search_entry (GtkWidget *do_widget)
gtk_container_add (GTK_CONTAINER (vbox), hbox);
/* Create our entry */
- entry = gtk_search_entry_new ();
+ entry = gtk_entry_new ();
+ gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry),
+ GTK_ENTRY_ICON_PRIMARY,
+ "edit-find-symbolic");
gtk_container_add (GTK_CONTAINER (hbox), entry);
/* Create the find and cancel buttons */